package com.oop4.test02;

/**
 * Created by L.jp
 * Description:
 * User: 86189
 * Date: 2022-09-18
 * Time: 22:14
 */
//final修饰方法不能被重写
public /*final*/ class Person {  //final修饰的类不能被继承
    public /*final*/ void eat(){
        System.out.println("我可以吃饭。。。");
    }
    
}
class Student extends Person{
    @Override
    public void eat() {
        super.eat();
    }
}
